package com.excel.controller;

import com.excel.entity.ImportInfoVO;
import com.excel.service.ImportService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author User
 */
@RestController
@RequestMapping("/api/v1/import")
public class ImportController {

    @Resource
    private ImportService importService;

    /**
     * 导入记录明细
     */
    @GetMapping("/detail")
    public ImportInfoVO detail(@RequestParam("id") Integer id) {
        return importService.detail(id);
    }

}